
* Manually created by J.Blaum, April 2021

gen sector =.
replace sector =3 if sector2=="31"
replace sector =4 if sector2=="32"
replace sector =5 if sector2=="33"
replace sector =6 if sector2=="34"
replace sector =7 if sector3=="353" | sector3=="354"
replace sector =8 if sector3=="351" | sector3=="352"
replace sector =9 if sector3=="355" | sector3=="356"
replace sector =10 if sector2=="36"
replace sector =11 if sector2=="37"
replace sector =12 if sector3=="381"
replace sector =13 if sector4=="3821" | sector4=="3822" | sector4=="3823" | sector4=="3824" | sector4=="3829"
replace sector =14 if sector4=="3825" | sector3=="385" | sector4=="3832" 
replace sector =15 if sector4=="3831" | sector4=="3833" | sector4=="3839" 
replace sector =16 if sector4=="3843" | sector4=="3844"
replace sector =17 if sector4=="3841" | sector4=="3842" | sector4=="3845" | sector4=="3849"
replace sector =18 if sector2=="39"

				


